<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/head/common/include/page.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<title>添加评论 - 体能测试系统</title>
		<%@ include file="/head/common/include/title.jsp"%>
	    <link rel="stylesheet" href="${rootPath }/head/common/resource/bootstrapvalidator/css/form-validation.css" rel="stylesheet">
	  	<script type="text/javascript" src="${rootPath }/head/common/resource/bootstrapvalidator/js/form-validation.js"></script>
	  	<script language="javascript" type="text/javascript" src="${rootPath }/common/resource/My97DatePicker/WdatePicker.js"></script>
	  	<script type="text/javascript">
	  		$(function()
			{
			  	$("#form").FormValidation({
		  			fields:
	  				{
		  				phone:
	  					{
		  					validators: {
		  	                    notEmpty: {
		  	                        message: '手机号不能为空'
		  	                    },
		  	                    stringLength: {
		  	                        min: 11,
		  	                        max:11,
		  	                        message: '手机号的长度为在11位'
		  	                    },
		  	                    regexp: {
		  	                        regexp: /^[\d]{11}$/i,
		  	                        message: '手机号不符合规则'
		  	                    }
		  	                }
	  					},
	  					grade:
	  					{
		  					validators: {
		  	                    notEmpty: {
		  	                        message: '年级不能为空'
		  	                    },
		  	                    regexp: {
		  	                        regexp: /^[\d]+$/i,
		  	                        message: '年级不符合规则'
		  	                    }
		  	                }
	  					},
	  					age:
	  					{
		  					validators: {
		  	                    notEmpty: {
		  	                        message: '年龄不能为空'
		  	                    },
		  	                    regexp: {
		  	                        regexp: /^[\d]+$/i,
		  	                        message: '年龄不符合规则'
		  	                    }
		  	                }
	  					},
	  				}
				});
			  	
			});
	  	</script>
	</head>
	<body>
		<%@ include file="/head/common/include/header.jsp"%>
		<!-- 网页的主体 -->
		<div class="container">
			<div class="col-md-8 col-sm-10">
				<form id="form" method="post" class="form-horizontal" action="${rootPath }/head/goods/commentInsertSubmit">
					<h2 class="col-sm-10 col-sm-offset-1 form-signin-heading text-center">添加评论</h2>
					<div class="form-group row">
						<label for="email" class="col-sm-3 control-label">用户名:</label>
						<div class="col-sm-8">
						<input type="text" name="name" id="name" value="${sessionScope.usersSess.email}"
							class="form-control" placeholder="标题" readonly="readonly"/>
						</div>
					</div>
					<div class="form-group row">
						<label for="inputPassword" class="col-sm-3 control-label">标题</label>
						<div class="col-sm-8">
							<input type="text" name="name" id="name" value="${pojo.name}"
								class="form-control" placeholder="标题" />
						</div>
					</div>
					<div class="form-group row">
						<label for="email" class="col-sm-3 control-label">内容</label>
						<div class="col-sm-8">
							<input type="text" name="name" id="name" value="${pojo.content}"
								class="form-control" placeholder="内容" />
						</div>
					</div>
					<div class="form-group row">
						<label for="email" class="col-sm-3 control-label">点赞：个:</label>
						<div class="col-sm-8">
							<input type="text" name="fabulous" id="fabulous" value="${pojo.fabulous}"
								class="form-control" placeholder="点赞：个" />
						</div>
					</div>
					<div class="form-group row">
						<label for="score" class="col-sm-3 control-label">评分</label>
						<div class="col-sm-8">
							<input type="text" name="score" id="score" value="${pojo.score}"
								class="form-control" placeholder="score" />
						</div>
					</div>
					<div class="form-group row">
						<div class="col-sm-8 col-sm-offset-2">
							<button class="btn btn-md btn-primary" type="submit">提交</button>
						</div>
					</div>
				</form>
			</div>
		</div>
		<%@ include file="/head/common/include/footer.jsp"%>
	</body>
</html>